function setCol(item,colNum) {
    var col = item.length % colNum;
    var html = '<tr>';
    for (var i = 0; i < item.length; i++) {
        html+="<td>"+item[i]+"</td>";
        if( i === colNum-1 ){
            html += "</tr><tr>";
        }
        if (i % colNum === 0 && i > colNum ) {
            html += "</tr><tr>";
        }
    }
    if (item.length > colNum &&  col > 0 ){
        for (var j = 0; j < col; j++) {
            html += "<td></td>";
        }
        html += "</tr>";
    }
    if(item.length <= colNum){
        for (var k = 0; k < colNum - item.length ; k++) {
            html += "<td></td>";
        }
        html += "</tr>";
    }
    return html

}